#!/bin/sh
#type:restricted
#desc:Register output states
#package:odcontrol

# Copyright(c) 2011 OpenDomo Services SL. Licensed under GPL v3 or later

LOGFILE="/var/log/outputstates.log"
tstamp=`date +%H:%M:%S`

touch $LOGFILE
chmod o+w $LOGFILE
echo -n "$tstamp $3" | sed -e 's/set output //' -e 's/[^a-zA-Z0-9 :]//g' -e 's/ to /=/'>> $LOGFILE
